package com.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class Main extends AbstractAction {

	private static final String MENU_URL					= "/programs/main/menu.jsp";
	private static final String TOP_URL						= "/programs/main/top.jsp";
	
	private static final String MENU_ACTION 				= "menu";
	private static final String TOP_ACTION 				= "top";
	
	@Override
	public String doAction(HttpServletRequest req, HttpServletResponse res) {
		// TODO Auto-generated method stub
		String action=req.getParameter("action");
		if(MENU_ACTION.equals(action)){
			return MENU_URL;
		}
		if(TOP_ACTION.equals(action)){
			return TOP_URL;
		}
		return null;
	}

}
